package org.createModel.prototype.test;

public class cilent {
    public static void main(String[] args) {
        try {
//            Citation citation1 = new Citation();
//            citation1.setName("张三");
//            Citation citation2 = citation1.clone();
//            citation2.setName("李四");
            Student student1 = new Student();
            student1.setName("张三");
            Citation citation1 = new Citation();
            citation1.setStudent(student1);
            Citation citation2 = citation1.clone();
            citation2.getStudent().setName("李四");


            citation1.show();
            citation2.show();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
    }
}
